package com.example.demo;

import java.util.List;

public interface GenericDao<T, PK> {

	void save(T entity);

	void delete(T entity);

	void deleteAll(List<T> entities);

	void saveOrUpdate(T entity);

	T findById(PK id);

	void update(T entity);

	List<T> findAll(Object... args);

	Object getUniqueObject(String hql, Object... params);


	void deletebyhql(String hql);

	List<T> queryPage(T entity, int page, int rows);

}